package com.ruoyi.riskrule.test;

public abstract  class Decorator extends Component{

    private Component component = null;
    public Decorator(Component component){
        this.component = component;
    }
    @Override
    public void cost(){
        this.component.cost();
    }

}
